package demoMod.moduploader.ui;

import com.badlogic.gdx.graphics.Color;
import demoMod.gdxform.ui.GList;
import demoMod.moduploader.core.MainWindow;
import demoMod.moduploader.interfaces.Refreshable;

public class ModList extends GList<ModDisplayItem> implements Refreshable {
    public ModList() {
        setBackground(Color.WHITE.cpy());
        setBackground(MainWindow.steamBgColor.cpy());
        setColumns(3);
    }

    @Override
    public void refresh() {
        for (ListCellRenderer<ModDisplayItem> itemCellRenderer : getElements()) {
            itemCellRenderer.getElements().get(0).refresh();
        }
    }
}
